package com.gjun.struts.bean;

import com.gjun.struts.bean.ext.Item;

public class ItemJsonBean {
	private int id;
	private int productId;
	private String productName;
	private double dangPrice;
	private int productNum;
	private double amount;
	
	
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}



	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}



	/**
	 * @return the productId
	 */
	public int getProductId() {
		return productId;
	}



	/**
	 * @param productId the productId to set
	 */
	public void setProductId(int productId) {
		this.productId = productId;
	}



	/**
	 * @return the productName
	 */
	public String getProductName() {
		return productName;
	}



	/**
	 * @param productName the productName to set
	 */
	public void setProductName(String productName) {
		this.productName = productName;
	}



	/**
	 * @return the dangPrice
	 */
	public double getDangPrice() {
		return dangPrice;
	}



	/**
	 * @param dangPrice the dangPrice to set
	 */
	public void setDangPrice(double dangPrice) {
		this.dangPrice = dangPrice;
	}



	/**
	 * @return the productNum
	 */
	public int getProductNum() {
		return productNum;
	}



	/**
	 * @param productNum the productNum to set
	 */
	public void setProductNum(int productNum) {
		this.productNum = productNum;
	}



	/**
	 * @return the amount
	 */
	public double getAmount() {
		return amount;
	}



	/**
	 * @param amount the amount to set
	 */
	public void setAmount(double amount) {
		this.amount = amount;
	}



	public ItemJsonBean(Item item) {
		// TODO Auto-generated constructor stub
		this.id = item.getId();
		this.productId = item.getProductId();
		this.productName = item.getProductName();
		this.dangPrice = item.getDangPrice();
		this.productNum = item.getProductNum();
		this.amount = item.getAmount();
	}
	
	
}
